#include <iostream>
#include <iomanip> // 控制小数点格式
#include <string>

using namespace std;

struct Account {
    string id;      // 账号
    string name;    // 姓名
    double balance; // 余额
};

int main() {
    const int n = 10; // 账户总数
    Account accounts[n];
    double total_balance = 0.0; // 总余额

    // 读取 10 行数据
    for (int i = 0; i < n; i++) 
    {
        cin >> accounts[i].id >> accounts[i].name >> accounts[i].balance;
        total_balance += accounts[i].balance;
    }

    // 计算平均余额
    double average_balance = total_balance / n;

    // 筛选并输出余额大于平均值的账户
    for (int i = 0; i < n; i++) 
    {
        if (accounts[i].balance > average_balance) 
        {
            // 输出账号、姓名、余额，余额保留两位小数
            cout << accounts[i].id << " " 
                 << accounts[i].name << " " 
                 << fixed << setprecision(2) << accounts[i].balance 
                 << endl;
        }
    }

    return 0;
}
